var vm = new Vue({
    el:"#app",
    data:{
        searchText:"",
        searchArr:[
            "烤肉","火锅","烧烤"
        ]
    },
    methods: {
        search(){
            if(this.searchText!=""){
                this.searchArr.push(this.searchText)
                this.searchText = ""
            }
        }
    },
})